﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Redis.Utils
{
    /// <summary>
    /// redis全局配置
    /// </summary>
    public class RedisConfig
    {
         public RedisConfig()
        {
            this.IsCache = true;
            this.SendTimeout = -1;
            this.Nodes = new Dictionary<string, RedisNode>();
        }
        /// <summary>
        /// 是否缓存
        /// </summary>
        public bool IsCache { get; set; }

        /// <summary>
        /// 发送超时时间
        /// </summary>
        public int SendTimeout { get; set; }

        /// <summary>
        /// 节点列表
        /// </summary>
        public Dictionary<string, RedisNode> Nodes { get; set; }

    }
}
